package io.renren.modules.generator.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.generator.dto.GardenPortraitWeekWarning;
import io.renren.modules.generator.entity.DeviceWarningQuotaEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 指标超标事件
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-09-12 13:45:15
 */
@Mapper
public interface DeviceWarningQuotaDao extends BaseMapper<DeviceWarningQuotaEntity> {

    Integer selectWarningDeviceTotal();

    List<GardenPortraitWeekWarning> selectWariningWeekstatis();

    List<Integer> selectHours(@Param("dateStr") String dateStr, @Param("site") String site,
                                                   @Param("code") String code,@Param("warning") String warning);

    List<Integer> selectDays(@Param("startDay") String startDay, @Param("endDay") String endDay,
                             @Param("site") String site, @Param("code") String code);
}
